

import Home from '@/pages/Home'
import Search from '@/pages/Search'
import Login from '@/pages/Login'
import Register from '@/pages/Register'
import Detail from '@/pages/Detail'
import AddCartSuccess from '@/pages/AddCartSuccess'
import ShopCart from '@/pages/ShopCart'
import Trade from '@/pages/Trade'
import Pay from '@/pages/Pay'
import PaySuccess from '@/pages/PaySuccess'


export default [
  {
    name: 'paysuccess',
    path: "/paysuccess",
    component: PaySuccess,
    meta: {
      isShow: true
    }
  },
  {
    name: 'pay',
    path: "/pay",
    component: Pay,
    meta: {
      isShow: true
    }
  },
  {
    name: 'trade',
    path: "/trade",
    component: Trade,
    meta: {
      isShow: true
    }
  },
  {
    name: 'shopcart',
    path: "/shopcart",
    component: ShopCart,
    meta: {
      isShow: true
    }
  },
  {
    name: 'addcartsuccess',
    path: "/addcartsuccess",
    component: AddCartSuccess,
    meta: {
      isShow: true
    }
  },
  {
    name: 'detail',
    path: "/detail/:skuid",
    component: Detail,
    meta: {
      isShow: true
    }
  },
  {
    name: 'home',
    path: "/home",
    component: Home,
    meta: {
      isShow: true
    }
  },
  {
    name: 'search',
    path: "/search/:keyword?",
    component: Search,
    meta: {
      isShow: true
    }
  },
  {
    name: 'login',
    path: "/login",
    component: Login,
    meta: {
      isShow: false
    }
  },
  {
    name: 'register',
    path: "/register",
    component: Register,
    meta: {
      isShow: false
    }
  },
  {
    path: '',
    redirect: '/home'
  }
]